package org.or5e.odes.core.folder;

import java.io.File;

import org.or5e.odes.core.BaseObject;

public class ScanFolderHelper extends BaseObject {
	public static void scanVideo(File videoFolder) {
		File[] listOfFilesAndFolder = videoFolder.listFiles(new VideoFileNameFilter());
		for (File fileOrFolder : listOfFilesAndFolder) {
			if(fileOrFolder.isDirectory()) {
				scanVideo(fileOrFolder);
			}
			else {
				System.out.println(fileOrFolder.getAbsolutePath());
				getVideoInfo(fileOrFolder);
			}
		}
	}
	private static VideoInfo getVideoInfo(File videoFile) {
		VideoInfo vInfo = new VideoInfo();
		
		return vInfo;
	}
	@Override protected String getName() {
		return "ScanFolderHelper";
	}
}